package com.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * Product entity. @author MyEclipse Persistence Tools
 */

public class Product implements java.io.Serializable {

	// Fields

	private Integer pid;
	private Cangku cangku;
	private String pname;
	private Double price;
	private Integer pnum;
	private String purl;
	private Set ruinfos = new HashSet(0);
	private Set chuinfos = new HashSet(0);

	// Constructors

	/** default constructor */
	public Product() {
	}

	/** full constructor */
	public Product(Cangku cangku, String pname, Double price, Integer pnum,
			String purl, Set ruinfos, Set chuinfos) {
		this.cangku = cangku;
		this.pname = pname;
		this.price = price;
		this.pnum = pnum;
		this.purl = purl;
		this.ruinfos = ruinfos;
		this.chuinfos = chuinfos;
	}
	
	public Product(Cangku cangku, String pname, Double price, Integer pnum,
			String purl) {
		super();
		this.cangku = cangku;
		this.pname = pname;
		this.price = price;
		this.pnum = pnum;
		this.purl = purl;
	}

	// Property accessors

	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Cangku getCangku() {
		return this.cangku;
	}

	public void setCangku(Cangku cangku) {
		this.cangku = cangku;
	}

	public String getPname() {
		return this.pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getPnum() {
		return this.pnum;
	}

	public void setPnum(Integer pnum) {
		this.pnum = pnum;
	}

	public String getPurl() {
		return this.purl;
	}

	public void setPurl(String purl) {
		this.purl = purl;
	}

	public Set getRuinfos() {
		return this.ruinfos;
	}

	public void setRuinfos(Set ruinfos) {
		this.ruinfos = ruinfos;
	}

	public Set getChuinfos() {
		return this.chuinfos;
	}

	public void setChuinfos(Set chuinfos) {
		this.chuinfos = chuinfos;
	}

}